{{include file="Manage/header.html"}}
<body class="regi_body">
	<div class="regi_header">
		<a href="javascript:">培育计划申报</a>
	</div>
	<div class="register">
		<div class="bule_bg">
			<div>重置密码</div>
		</div>
		<form method="post" onsubmit="return false">
			<div class="content">
				<table>
					<tr>
						<td>新密码</td>
						<td>
							<input type="password" name="password">
						</td>
						<td id="password">密码由6-20位的英文字母、数字和特殊符号组成</td>
					</tr>
					<tr>
						<td>确定密码</td>
						<td>
							<input type="password" name="password2">
						</td>
						<td id="password2">请再次填写一遍密码，以辅助检测密码输入是否正确</td>
					</tr>
					<tr>
						<td>手机号码</td>
						<td><input type="text" name="number"></td>
						<td id="number">请输入绑定的手机号码</td>
					</tr>
					<tr class="get_code" >
						<td>验证码</td>
						<td>
							<input type="text" id="code" tab="getpassword">
							<button id="sms">获取短信验证码</button>
						</td>
					</tr>
				</table>
				<button onclick="register();">确定</button>
			</div>
		</form>
	</div>
	<script>
        {{include file="Manage/user.js"}}

        //注册提交
        function post(){
            var params = $("form").serialize();
            $.post('{{"index.php?app=Login&password"|URL}}',params,function(result){
                if(result.statusCode=='200'){
                    ui.success(result.message);
                    setTimeout(function(){
                        var url = "{{$smarty.const.__PROJECT__}}Login/index";
                        document.location.href = url;//登录后跳转页面
                    },1000);
                }else if(result.statusCode=='300') $("#"+result.message.name+"").html(result.message.message).css('color','#E9686B');
            },'json');
        }

	</script>
</body>
</html>